package com.xuecheng.content.service.impl;

import com.example.content.model.pojo.CoursePublish;
import com.xuecheng.content.mapper.CoursePublishMapper;
import com.xuecheng.content.service.CoursePublishService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CoursePublishServiceImpl implements CoursePublishService {
    @Resource
    CoursePublishMapper coursePublishMapper;
    /**
     * 根据课程 id查询课程发布信息
     *
     * @param courseId
     * @return
     */
    @Override
    public CoursePublish getCoursePublish(Long courseId) {
        System.out.println("courseId = " + courseId);
        CoursePublish coursePublish = coursePublishMapper.selectById(courseId);
        return coursePublish ;
    }

}
